I have another problem. set(delItmsLST, DEL_OBJS_NUM, doSortInt)
setSortColumn(delItmsLST, DEL_OBJS_NUM)
kabr - Thu Jul 28 08:30:40 EDT 2011 |
Re: Sort column in listview
You allow the user to sort a column when she clicks on it by defining the ListView and the column correctly and have to assign the "callback" to a precise piece of code. There is no "callback' in the "set" or "button" or "apply" sense.
//*******************
int fDbeLv_clbkSortFunction(string s1, s2)
{ // Standard sort function when defining a column as sortable.
// Developers Note: Some code if added herein will cause DXL exception Violations.
// Don't understand why, but this function needs to be kept as-is.
int Result
if (s1 == s2) Result = 0
elseif (s1 > s2) Result = 1
elseif (s1 < s2) Result = -1
else{} // all cases covered
return(Result)
} // end fDbeLv_clbkSortFunction()
|
Re: Sort column in listview llandale - Thu Jul 28 18:07:49 EDT 2011
You allow the user to sort a column when she clicks on it by defining the ListView and the column correctly and have to assign the "callback" to a precise piece of code. There is no "callback' in the "set" or "button" or "apply" sense.
//*******************
int fDbeLv_clbkSortFunction(string s1, s2)
{ // Standard sort function when defining a column as sortable.
// Developers Note: Some code if added herein will cause DXL exception Violations.
// Don't understand why, but this function needs to be kept as-is.
int Result
if (s1 == s2) Result = 0
elseif (s1 > s2) Result = 1
elseif (s1 < s2) Result = -1
else{} // all cases covered
return(Result)
} // end fDbeLv_clbkSortFunction()
Thanks for your response, Louie! print "s1: " s1 "\ts2: " s2 "\n"
|
Re: Sort column in listview kabr - Fri Jul 29 06:02:47 EDT 2011
Thanks for your response, Louie! print "s1: " s1 "\ts2: " s2 "\n"
reason was not having incremented the row index correctly. |